package 曾世昌12_9.zuoye4;

public class phone {
    String name;
    String brand;
    double size;
    int price;

    public phone() {
    }

    @Override
    public String toString() {
        return "phone{" +
                "name='" + name + '\'' +
                ", brand='" + brand + '\'' +
                ", size=" + size +
                ", price=" + price +
                ", color='" + color + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getSize() {
        return size;
    }

    public void setSize(double size) {
        this.size = size;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public phone(String name, String brand, double size, int price, String color) {
        this.name = name;
        this.brand = brand;
        this.size = size;
        this.price = price;
        this.color = color;
    }

    String color;
}
